package com.mybatis.flex.entity;

import com.mybatis.flex.enums.TypeEnum;
import com.mybatis.flex.listener.FlexSetListener;
import com.mybatisflex.annotation.*;
import com.mybatisflex.core.mask.Masks;
import com.mycloud.annotation.MyData;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@MyData
@Data
@Table(value = "tb_account",onSet = FlexSetListener.class )
//@Table(value = "tb_account" )
public class Account implements Serializable {



    @Id(keyType = KeyType.Auto)
    private Long id;
    @Column
    private String userName;
    @ColumnMask(Masks.PASSWORD)
    private String password;
    @Column
    private String sex;
    @Column
    private int age;
    @Column
    private Date birthday;
    @Column(isLogicDelete = true)
    private Boolean isDelete;
    @Column(version = true)
    private Long version;
    @Column
    private String createUser;
    @Column
    private Date createDate;
    @Column
    private String updateUser;
    @Column
    private Date updateDate;

    private TypeEnum typeEnum;
}
